﻿#pragma once

#include "resource.h"
#include "framework.h"
#include "resource.h"
#include <list>

class Snake
{
public:
	Snake();
	~Snake();
	void Begin(int top, int bottom, int left, int right);
	void move(int flag);
	bool eat(POINT point,int flag);
	bool impact();
	std::list<POINT>* ReturnList();
	POINT rand_point();

private:
	std::list<POINT> LIST;
	int top, bottom, left, right;
};
